import React from 'react'
import { List, Switch } from 'antd-mobile'
// 列表组件封装
function Myuser({ data }) {
  return (
    <div>
      <List header='基础用法'>
        {
          data.map((item, index) => {
            return <List.Item key={index} description={item.code} >
              {item.name} <span style={{color:'#ccc',fontSize:'12px'}}>{item.type}</span></List.Item>
          })
        }
      </List>
    </div>
  )
}

export default Myuser
